import Vue from 'vue'
import Router from 'vue-router'
import Login from '../components/Login'
import Register from '../components/Register'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Login',
      component: Login
    },
    {
      path: '/Register',
      name: 'Register',
      component: Register
    },
    //稽查管理员
    {
      path:'/Manage3',
      name:'Manage3',
      component:()=> import('../components/Manage3'),
      meta:['首页'],
      children:[
        {
          path:'/Distribution',
          name:'Distribution',
          component:()=> import('../components/Admin/Distribution'),
          meta:['管理员','分配任务'],
        },
        {
          path:'/PersonInfo',
          name:'PersonInfo',
          component:()=> import('../components/Admin/PersonInfo'),
          meta:['管理员','个人信息'],
        },
      ]
    },
    //稽查员


  {
    path: '/Manage',
    name: 'Manage',
    component: () => import('../components/Manage.vue'),
    meta: ['首页'],
    children:[
        {
          path: '/RepaymentReminder',
          name: 'RepaymentReminder',
          component: () => import('../components/inspector/RepaymentReminder.vue'),
          meta: ['稽查管理功能','补缴提醒']
        },
        {
          path: '/TaskProgress',
          name: 'TaskProgress',
          component: () => import('../components/inspector/TaskProgress.vue'),
          meta: ['稽查管理功能','稽查任务进度']
        },
        {
          path: '/ReportAccess',
          name: 'ReportAccess',
          component: () => import('../components/inspector/ReportAccess.vue'),
          meta: ['稽查管理功能','稽查报告调阅']
        },
        {
          path: '/AutoResult',
          name: 'AutoResult',
          component: () => import('../components/inspector/AutoResult.vue'),
          meta: ['稽查管理功能','系统自动稽查结果']
        },
        {
          path: '/AppralApprove',
          name: 'AppralApprove',
          component: () => import('../components/inspector/AppralApprove.vue'),
          meta: ['稽查管理功能','申诉待稽查数据审批']
        },
        {
          path: '/RefundApprove',
          name: 'RefundApprove',
          component: () => import('../components/inspector/RefundApprove.vue'),
          meta: ['稽查管理功能','退款审批']
        },
        {
          path: '/PersonList',
          name: 'PersonList',
          component: () => import('../components/PersonMassage/PersonList.vue'),
          meta: ['个人信息','个人信息查询']
        },
        {
          path: '/PassWord',
          name: 'PassWord',
          component: () => import('../components/PersonMassage/PassWord.vue'),
          meta: ['个人信息','密码修改']
        },
        {
          path: '/ReportList',
          name: 'ReportList',
          component: () => import('../components/WorkTask/ReportList.vue'),
          meta: ['工作任务','稽查任务查看']
        },
      {
        path: '/HandleReport',
        name: 'HandleReport',
        component: () => import('../components/WorkTask/HandleReport.vue'),
        meta: ['工作任务','稽查任务查看','申诉处理']
      },
        {
          path: '/UserAppeal',
          name: 'UserAppeal',
          component: () => import('../components/WorkTask/UserAppeal.vue'),
          meta: ['工作任务','车主申诉请求受理']
        },
        {
          path: '/Application',
          name: 'Application',
          component: () => import('../components/WorkTask/Application.vue'),
          meta: ['工作任务','申请待稽查数据']
        },
      ]

  },
      {
        path: '/Manage2',
        name: 'Manage2',
        component: () => import('../components/Manage2.vue'),
        meta: ['首页'],
        children:[
          {
            path: '/Personal',
            name: 'Personal',
            component: () => import('../components/Person/Personal.vue'),
            meta: ['个人信息管理','个人信息显示']
          },
          {
            path: '/BasicVR',
            name: 'BasicVR',
            component: () => import('../components/Person/BasicVR.vue'),
            meta: ['车辆信息管理','名下基础车辆信息查阅']
          },
          {
            path: '/VBasicID',
            name: 'VBasicID',
            component: () => import('../components/Person/VBasicID.vue'),
            meta: ['车辆信息管理','车辆基本信息详情查看']
          },
          {
            path: '/VVHistory',
            name: 'VVHistory',
            component: () => import('../components/Person/VVHistory.vue'),
            meta: ['历史通行信息查阅','车辆历史通行记录查看']
          },
          {
            path: '/DVHistory',
            name: 'DVHistory',
            component: () => import('../components/Person/DVHistory.vue'),
            meta: ['历史通行信息查阅','车辆历史通行记录详情查看']
          },
          {
            path: '/FeeA',
            name: 'FeeA',
            component: () => import('../components/Person/FeeA.vue'),
            meta: ['收费记录申诉','收费申诉']
          },
          {
            path: '/VComplaints',
            name: 'VComplaints',
            component: () => import('../components/Person/VComplaints.vue'),
            meta: ['收费记录申诉','收费异常申诉进度查看']
          },
          {
            path: '/Review',
            name: 'Review',
            component: () => import('../components/Person/Review.vue'),
            meta: ['申诉结果查阅','申诉结果查看']
          },
          {
            path: '/ManagementFee',
            name: 'ManagementFee',
            component: () => import('../components/Person/ManagementFee.vue'),
            meta: ['补缴/退款','补缴/退款']
          },
        ]
      },
  ]
})
